Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
How can I debug "Exception while resolving variable in template 'unknown'"?

I keep seeing

DEBUG Exception while resolving variable 'exception_type' in template 'unknown'.

in my django logs, followed by

VariableDoesNotExist: Failed lookup for key [exception_type] in

followed by what looks like a string representation of a a list of dictionaries containing the request, and my entire settings.py file.

Another example:

DEBUG Exception while resolving variable 'lastframe' in template 'unknown'

I feel like I just don't have enough information to debug this. All I know is there's a variable called exception_type in an unknown template. My code doesn't contain the string 'exception_type' anywhere.

How can I debug this? Where should I be looking?

  • Ubuntu 14.04
  • Python 2.7.6
  • Django 1.11
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

The point wasn't variable lastframe or variable exception_type you gotta checkout your url, all of the urls, not just back-end url but also the front-end url. Check out the front-end urls and middleware (if you wrote your own middleware files, the best check way is testing admin on your url). I got the same kind of question, when I checked url and middleware, I solved the issue easily.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!